package com.mob.commons.eventrecoder;

import android.content.Context;
import com.mob.commons.j;
import java.io.File;
import java.io.FileOutputStream;
import java.util.LinkedList;

public final class EventRecorder
{
  private static Context a;
  private static File b;
  private static FileOutputStream c;

  private static final void a(Runnable paramRunnable)
  {
    j.a(new File(a.getFilesDir(), "comm/locks/.mrlock"), paramRunnable);
  }

  private static final void a(String paramString)
  {
    a(new b(paramString));
  }

  public static final void addBegin(String paramString1, String paramString2)
  {
    try
    {
      a(paramString1 + " " + paramString2 + " 0\n");
      return;
    }
    finally
    {
      localObject = finally;
      throw localObject;
    }
  }

  public static final void addEnd(String paramString1, String paramString2)
  {
    try
    {
      a(paramString1 + " " + paramString2 + " 1\n");
      return;
    }
    finally
    {
      localObject = finally;
      throw localObject;
    }
  }

  public static final String checkRecord(String paramString)
  {
    try
    {
      LinkedList localLinkedList = new LinkedList();
      a(new c(paramString, localLinkedList));
      if (localLinkedList.size() > 0)
      {
        str = (String)localLinkedList.get(0);
        return str;
      }
      String str = null;
    }
    finally
    {
    }
  }

  public static final void clear()
  {
    try
    {
      a(new d());
      return;
    }
    finally
    {
      localObject = finally;
      throw localObject;
    }
  }

  public static final void prepare(Context paramContext)
  {
    try
    {
      a = paramContext.getApplicationContext();
      a(new a());
      return;
    }
    finally
    {
      localObject = finally;
      throw localObject;
    }
  }
}

/* Location:           C:\Users\user\Desktop\dd28_pcdd720\classes_dex2jar.jar
 * Qualified Name:     com.mob.commons.eventrecoder.EventRecorder
 * JD-Core Version:    0.6.2
 */